import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/dist/logger'

import event from './modules/event'
import helper from './modules/helper'

import movie from './modules/movie'
import activities from './modules/activities'
import book from './modules/book'
import subject from './modules/subject'
import group from './modules/group'
import search from './modules/search'
import user from './modules/user'

Vue.use(Vuex)
const isProd = process.env.NODE_ENV === 'production'
export default new Vuex.Store({
  plugins: isProd ? [] : [createLogger({collapsed: false})],
  modules: {
    event,
    helper,
    movie,
    activities,
    book,
    subject,
    group,
    search,
    user
  }
})
